﻿using NLog;
using Quartz;
using quartz_pro_service.Models;
using SqlSugar.IOC;

namespace quartz_pro_service.Jobs
{
    public class DmJob : IJob
    {
        private static readonly Logger logger = LogManager.GetCurrentClassLogger();

        public Task Execute(IJobExecutionContext context)
        {
            var list = DbScoped.SugarScope.GetConnection("dm").Queryable<Season>().ToList();

            logger.Info("读取 dm 数据条数: " + list.Count);
            logger.Error("读取 dm 出错啦");

            return Task.CompletedTask;
        }
    }
}
